package com._reflect;

import java.lang.reflect.Field;

/**
 * @Author: huangya
 * @Date: 2019/11/10
 * @Description:
 */
public class _FiledDemo {

    public static void main(String[] args) throws NoSuchFieldException {
        _FiledDemo fledDemo = new _FiledDemo();
        fledDemo.setAaa("1");
        Field[] fields = fledDemo.getClass().getDeclaredFields();
        System.out.println(fields);
    }

    private String aaa;
    private int bbb;
    private InnerFiledClass ccc;

    public String getAaa() {
        return aaa;
    }

    public void setAaa(String aaa) {
        this.aaa = aaa;
    }

    public int getBbb() {
        return bbb;
    }

    public void setBbb(int bbb) {
        this.bbb = bbb;
    }

    public InnerFiledClass getCcc() {
        return ccc;
    }

    public void setCcc(InnerFiledClass ccc) {
        this.ccc = ccc;
    }
}

class InnerFiledClass{
    private String aaa222;
    private int bbb222;
}
